package com.woohua.thread.limite;

import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;

/***
 * @title Application
 * @description
 * @author woo hua
 * @version 1.0.0
 * @create 2023/3/14 10:19
 **/
@SpringBootApplication
public class Application {
    public static void main(String[] args) {
        new SpringApplicationBuilder(Application.class).run(args);

        // 添加限流规则
        LimitRule rule = new LimitRule("/limit", 4);
        CurrentLimiter.addRule(rule);
    }
}
